
import request from '@/utils/request.js'


/***盲盒相关**/



//获取盲盒详情
export function getBoxDetails(id,origin,crystal_goods_id){
	return request({
		url:'/box/blind_box/BoxDetail/ids/'+id,
		method:'post',
		param:{
			origin,
			crystal_goods_id
		}
	})
}

//打开盲盒
export function openBox(openid){
	return request({
		url:'/user_collection/user_collection/openbox',
		method:'post',
		data:{
			openid
		}
	})
}
//打开盲盒(一键开启)
export function openBoxs(openid){
	return request({
		url:'/user_collection/user_collection/openBoxs',
		method:'post',
		data:{
			openid
		}
	})
}


/**
 * 
 *
 *获取开盒记录
 *
 **/
export function getOpenRecord(data){
	return request({
		url:'/box/blind_box/openlog',
		method:'post',
		data
	})
}

/**
 * 
 *
 *获取开盒记录
 *
 **/
export function new_openlog(data){
	return request({
		url:'/box/blind_box/new_openlog',
		method:'post',
		data
	})
}


